package com.feiwo.nonego.rpc.registry.api.config;

import com.feiwo.nonego.rpc.registry.api.enums.RegistryType;

import java.io.Serial;
import java.io.Serializable;

/**
 *
 *
 * @author feiwo 2025-08-08
 */
public class RegistryConfig implements Serializable {

    @Serial
    private static final long serialVersionUID = 7936968113084130500L;

    /**
     * 注册中心地址
     */
    private String registryAddress;

    /**
     * 注册中心类型
     */
    private RegistryType registryType;

    private String loadBalancerType;

    public RegistryConfig(String registryAddress, RegistryType registryType, String loadBalancerType) {
        this.registryAddress = registryAddress;
        this.registryType = registryType;
        this.loadBalancerType = loadBalancerType;
    }

    public String getRegistryAddress() {
        return registryAddress;
    }

    public void setRegistryAddress(String registryAddress) {
        this.registryAddress = registryAddress;
    }

    public RegistryType getRegistryType() {
        return registryType;
    }

    public void setRegistryType(RegistryType registryType) {
        this.registryType = registryType;
    }

    public String getLoadBalancerType() {
        return loadBalancerType;
    }

    public void setLoadBalancerType(String loadBalancerType) {
        this.loadBalancerType = loadBalancerType;
    }
}
